import Mock from "mockjs";

const totalPosts = 100; // 总共的帖子数量
const pageSize = 4; // 每页显示的帖子数量



const posts = Mock.mock({
    "list|50": [{
        "id|+1": 1,
        "name": "@cname",
        "type":"@pick(['verified','recommended','eastEurope','europeAmerica','japanKorea','southeastAsia','chinaRegion','others'])",
        "avatar": "@pick(['https://picsum.photos/200?1', 'https://picsum.photos/200?2', 'https://picsum.photos/200?3', 'https://picsum.photos/200?4', 'https://picsum.photos/200?5', 'https://picsum.photos/200?6', 'https://picsum.photos/200?7', 'https://picsum.photos/200?8', 'https://picsum.photos/200?9', 'https://picsum.photos/200?10', 'https://picsum.photos/200?11', 'https://picsum.photos/200?12', 'https://picsum.photos/200?13', 'https://picsum.photos/200?14', 'https://picsum.photos/200?15', 'https://picsum.photos/200?16', 'https://picsum.photos/200?17', 'https://picsum.photos/200?18', 'https://picsum.photos/200?19', 'https://picsum.photos/200?20'])",
        "gender|1": ["男", "女"],
        "focus|1-1000": 1,
        "fans|1-500": 1,
        "content": "@cparagraph(1, 3)",
        "country": "@pick(['CN', 'US', 'UK', 'JP', 'DE', 'FR', 'IN', 'BR', 'RU', 'CA'])", // 随机选择国家缩写
        "age|18-60": 1, // 添加年龄
        "bio": "@sentence(5, 10)", // 添加个人简介
        "albums|1-5": [{ // 添加相册内容
            "albumId|+1": 1,
            "albumName": "@word(3, 5)",
            "photos|3-10": [{ // 每个相册包含的照片
                "photoId|+1": 1,
                "photoUrl": "@pick(['https://picsum.photos/200?1', 'https://picsum.photos/200?2', 'https://picsum.photos/200?3', 'https://picsum.photos/200?4', 'https://picsum.photos/200?5', 'https://picsum.photos/200?6', 'https://picsum.photos/200?7', 'https://picsum.photos/200?8', 'https://picsum.photos/200?9', 'https://picsum.photos/200?10', 'https://picsum.photos/200?11', 'https://picsum.photos/200?12', 'https://picsum.photos/200?13', 'https://picsum.photos/200?14', 'https://picsum.photos/200?15', 'https://picsum.photos/200?16', 'https://picsum.photos/200?17', 'https://picsum.photos/200?18', 'https://picsum.photos/200?19', 'https://picsum.photos/200?20', 'https://picsum.photos/200?21', 'https://picsum.photos/200?22', 'https://picsum.photos/200?23', 'https://picsum.photos/200?24', 'https://picsum.photos/200?25', 'https://picsum.photos/200?26', 'https://picsum.photos/200?27', 'https://picsum.photos/200?28', 'https://picsum.photos/200?29', 'https://picsum.photos/200?30'])",
            }]
        }]
    }],
    "pagination": {
        "total": totalPosts, // 总帖子数量
        "pageSize": pageSize, // 每页帖子数量
        "currentPage|1-10": 1 // 当前页码
    }
});

export default posts;
